package com.adaxi.adc.business.passenger.controller;


import com.adaxi.adc.business.passenger.pojo.AdcPassenger;
import com.adaxi.adc.business.passenger.service.AdcPassengerService;
import com.adaxi.adc.common.common.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PassengerController {
    @Autowired
    AdcPassengerService iadcPassengerService;

    @GetMapping("/passenger/query/{id}")
    public CommonResult queryById(@PathVariable("id") String id) {
        AdcPassenger adcPassenger= iadcPassengerService.getById(id);
        return CommonResult.SUCCESS("查询乘客", adcPassenger);
    }

}
